package com.yao.spider.zhihu.parser;

import com.yao.spider.core.parser.DetailPageParser;
import com.yao.spider.zhihu.Page;
import com.yao.spider.zhihu.ZhiHuHttpClient;
import com.yao.spider.zhihu.entity.User;

/**
 * Created by 单耀 on 2018/1/1.
 */
public class ZhiHuUserDetailPageParser implements DetailPageParser{
    private static ZhiHuUserDetailPageParser instance;

    public static ZhiHuUserDetailPageParser getInstance() {
        if (instance == null) {
            //TODO 对ZHiHuHttoClient加锁
            synchronized (ZhiHuHttpClient.class) {
                if (instance == null) {
                    instance = new ZhiHuUserDetailPageParser();
                }
            }
        }
        return instance;
    }

    public User parseDetailPage(Page page) {
        return null;
    }
}
